import { Input, Form ,Button} from 'antd';
import React from 'react';
import { history } from 'umi';

const { TextArea } = Input;

type Props = {}



const AddText = (props: Props) => {

    const gotoBack = () => {
        history.push('/home/addStock');
      }
    const gotoNext = () => {
        history.push('/home/addLogistics');
      }
    return (
        <div>
            <Form.Item label="商品详情：" valuePropName="checked">
                <TextArea rows={8} />
            </Form.Item>
            <Form.Item className='but'>
                <Button type="primary" className='button' htmlType="submit" onClick={() => gotoBack()}>上一步</Button>
                {/* <Button type="primary" htmlType="submit" onClick={() => gotoNext()}>下一步</Button> */}
            </Form.Item>
            <Form.Item className='but'>
                <Button type="primary" className='butt' htmlType="submit" onClick={() => gotoNext()}>下一步</Button>
            </Form.Item>
        </div>
    )
}

export default AddText